home *** CD-ROM | disk | FTP | other *** search
- Path: news.clark.net!not-for-mail
- From: gusty@clark.net (Harlan Messinger)
- Newsgroups: comp.lang.c++
- Subject: Re: Major problem with strings.
- Date: 12 Mar 1996 18:53:39 GMT
- Organization: Clark Internet Services, Inc., Ellicott City, MD USA
- Message-ID: <4i4h7j$h1k@clarknet.clark.net>
- References: <31438275.72DB@aol2.com> <4i0gn0$5g9@sam.inforamp.net>
- NNTP-Posting-Host: explorer.clark.net
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=ISO-8859-1
- Content-Transfer-Encoding: 8bit
- X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
-
- Randy Charles Morin (rmorin@inforamp.net) wrote:
- : In article <31438275.72DB@aol2.com>, Neil <neil@aol2.com> wrote:
- : >1 char *club="";
- : >2 club="/public_html/neil";
- : >3 strcat(club,argv[1]+5);
- : >4 strcat(club,"/");
- :
- : No, this just won't do. When you want a '/' slash in C, use two slashes. The
- : '/' is also used to denote an escape sequence (for special characters). Thus
- : your code should read...
-
- Actually, that's for backslashes. Forward slashes are interpreted as
- regular characters.
-
-